<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%
	String path = request.getContextPath();
%>
<br>
<div align="right" style="font-size:14px;color: #4f6b72;">
共 ${pageBean.allRow } 条记录
<a href="javascript:goPage('1');">首页</a>
<a href="javascript:goPage('${pageBean.currentPage-1 }');">上一页</a>
<a href="javascript:goPage('${pageBean.currentPage+1 }');">下一页</a>
<a href="javascript:goPage('${pageBean.totalPage }');">尾页</a>

当前页：${pageBean.currentPage }/${pageBean.totalPage }

</div>

<script>
function goPage(val){
     
    var pageUrl=document.getElementById("method").value;
    var f=document.forms[0];
	f.action=pageUrl+"&pageBean.currentPage="+val;
	f.submit();
}
</script>
